		    <?php if ( is_single() ) : ?>
		    	<div class="wp-pagenavi">
                <p align="center"><?php previous_post('« «      %', '', 'yes'); ?><?php next_post('   |   %      » » ', '', 'yes'); ?></p>
          </div>
		    <?php elseif ( is_page() ) : ?>
		    	<div class="wp-pagenavi"><br/></div>
		    <?php else : ?>
		    	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		    <?php endif; ?>
        <div class="post-spacer"></div>

    </div>
    <!-- end-div-main -->

    <?php get_sidebar(); ?>

</div>
<!-- end-div-wrapper -->
</div>
<!-- end-div-body -->

<?php wp_footer() ?>

</body>
</html>
<!--
<?php
echo 'Executed ' . get_num_queries() . ' queries in ' . timer_stop(0,3) . 's';
if (current_user_can('switch_themes')){
    global $wpdb;
    echo "\n<pre>\n";
    print_r($wpdb->queries);
    echo "\n</pre>\n";
}
?>
-->
